// house_pkg/pages/building/index.ts
Page({
  onLoad(query) {
    console.log(query)
    // 获取到小区信息
    this.fake(query.title)
  },
  // 根据小区信息模拟一些数据
  fake(title) {
    const list = []
    for (let index = 1; index <= 5; index++) {
      list.push({
        id: index,
        name: `${title}${index}号楼`,
      })
    }
    this.setData({ list })
  },
})
